import server from "@/utils/request";
// 局校互通

//分页获取
export function link(payload:{cp:number,ps:number}){
    return server.get(`/school/AllAllInform/getAllInformByPage?cp=${payload.cp}&ps=${payload.ps}`)
}

// 删除
export function deleteAllInform(id:any) {
    return server.delete('/school/AllAllInform/deleteAllInform/' + id)
}
// 查询
export function getAllInformById(id:any) {
    return server.get('/school/AllAllInform/getAllInformById/' + id)
}
// 新增
export function addlink(payload:{title:any,typeId:any,detail:any,priority:any,}) {
    return server.post(`/school/AllAllInform/saveAllInform?title=${payload.title}&typeId=${payload.typeId}&detail=${payload.detail}&priority=${payload.priority}`)
}



